package cn.gjculture.shopping.api.entity;

import cn.gjculture.shopping.api.util.DateUtil;
import cn.gjculture.shopping.api.util.UUIDUtil;
import lombok.Data;

import java.util.List;

@Data
public class GoodsRecord extends Commodity {

    private String goodsRecordId;
    //商品数量
    private Integer count;
    private String orderId;
    private String goodsNo;
    private String goodsPaySum;
    private String goodsStand;
    private String goodsColor;
    private String goodsUseScore;
    private Supplier supplier;
    private String postage;
    private List<Logistics> logistics;

    public GoodsRecord(){
        super.setStatus(1);
    }

    public GoodsRecord(boolean b){
        if(b){
            super.setStatus(1);
            this.goodsRecordId= UUIDUtil.getUUID();
            this.setInsertTime(DateUtil.getTimestamp());
        }

    }
}
